package com.zyk.service;

import com.zyk.entity.Resource;
import com.baomidou.mybatisplus.service.IService;
import com.zyk.vo.FinalResult;
import com.zyk.vo.ResourceAllTreeVo;
import com.zyk.vo.ResourcetreeGridVo;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 资源 服务类
 * </p>
 *
 * @author feifeimao
 * @since 2017-11-20
 */
public interface IResourceService extends IService<Resource> {
    List<Resource> selectResourceListInRoleId(List<Long> roleId);

    List<ResourcetreeGridVo> treeGird();

    Set<ResourceAllTreeVo> allTree();

    Set<ResourceAllTreeVo> allTrees();

    Set<ResourceAllTreeVo> tree(Long uid);

    Set<ResourceAllTreeVo> trees();

    FinalResult add(Resource resource);

    FinalResult delete(Resource resource);
}
